import request from '@/utils/request'

export function fetchMetadataLabelGroupList(data) {
  return request({
    url: '/system/metadata/MetadataLabelGroup/list',
    method: 'post',
    data,
  })
}

export function syncColumn(data) {
  return request({
    url: '/system/metadata/source/syncColumn/' + data,
    method: 'get',
    data,
  })
}

export function getMetadataLabelGroup(id) {
  return request({
    url: '/system/metadata/MetadataLabelGroup/detail/' + id,
    method: 'get',
    params: { id },
  })
}

export function createMetadataLabelGroup(data) {
  return request({
    url: '/system/metadata/MetadataLabelGroup/add',
    method: 'post',
    data,
  })
}

export function updateMetadataLabelGroup(data) {
  return request({
    url: '/system/metadata/MetadataLabelGroup/update',
    method: 'post',
    data,
  })
}

export function deleteMetadataLabelGroup(ids) {
  return request({
    url: '/system/metadata/MetadataLabelGroup/delete',
    method: 'post',
    data: { ids },
  })
}
